import { defineStore } from 'pinia'
import { piniaStore } from '@/store'
import api from '@/api'
export const dataListStore = defineStore(
    // 唯一ID
    'dataList',
    {
        state: () => ({
            sheetList: [],
            pageObj: {},
            searchForm: {},
            selectAllSubjectList: [],// 所选科目
            
            allfeeTypeVOList: [],//所选费用类型
        }),
        getters: {

        },
        actions: {
            submitSubjectId(list) {
                this.selectAllSubjectList = list
            },
            setAllfeeTypeVOList(list) {
                this.allfeeTypeVOList = list
            }

        }
    }
)

export function dataListOutsideStore() {
    return dataListStore(piniaStore)
}